package com.isesol.api.example.rest.test;

import com.google.common.collect.*;
import com.isesol.api.example.rest.test.model.*;
import com.isesol.api.rest.annoations.*;
import com.isesol.api.rest.model.base.*;
import org.springframework.stereotype.*;

import java.util.*;

/**
 * @author Peter Zhang
 */
@Service
@RestServiceClass(url = "user")
public class UserResources extends BusinessResources{

	@RestServiceMethod(url = "info",
			requestType = UserRequest.class,
			authority = RestAuthority.NONE)
	public Object info(UserRequest request){
		
		Map result = Maps.newHashMap();

		result.put("info", request.toString());

		return result;
	}

}
